
<template>
    <div class="spanControl-list" style="width: 100%;margin-left: 0!important;">
        <el-card class="box-card card-head" style="margin: 0px; width: 100%; min-height: 99%">
            <div slot="header" class="clearfix">
                <span>查看资讯</span>
            </div>

            <div class="text item">
                <el-form label-position="left" inline class="display-form">
                        <el-form-item label="标识">
                            <span>{{ information.EId }}</span>
                        </el-form-item>
                        <el-form-item label="名称">
                            <span>{{ information.name }}</span>
                        </el-form-item>
                        <el-form-item label="序列号">
                            <span>{{ information.serialNumber }}</span>
                        </el-form-item>
                        <el-form-item label="标题">
                            <span>{{ information.informationTitle }}</span>
                        </el-form-item>
                        <el-form-item label="发布时间">
                            <span>{{ information.creationTime }}</span>
                        </el-form-item>
                        <el-form-item label="资讯类型">
                            <span>{{ information.informationType }}</span>
                        </el-form-item>
                        <el-form-item label="作者">
                            <span>{{ information.author }}</span>
                        </el-form-item>
                        <el-form-item label="来源">
                            <span>{{ information.source }}</span>
                        </el-form-item>
                        <el-form-item label="pc发布渠道">
                            <span>{{ information.publishingToPc }}</span>
                        </el-form-item>
                        <el-form-item label="App发布渠道">
                            <span>{{ information.publishingToApp }}</span>
                        </el-form-item>
                        <el-form-item label="微信发布渠道">
                            <span>{{ information.publishingToWechat }}</span>
                        </el-form-item>
                        <el-form-item label="关键词">
                            <span>{{ information.keyWords }}</span>
                        </el-form-item>
                        <el-form-item label="首页轮播">
                            <span>{{ information.homeCarousel }}</span>
                        </el-form-item>
                        <el-form-item label="内容">
                            <span>{{ information.content }}</span>
                        </el-form-item>
                        <el-form-item label="备注">
                            <span>{{ information.remark }}</span>
                        </el-form-item>
                        <el-form-item label="创建人">
                            <span>{{ information.createId }}</span>
                        </el-form-item>
                        <el-form-item label="创建时间">
                            <span>{{ information.createDatetime }}</span>
                        </el-form-item>
                        <el-form-item label="修改人">
                            <span>{{ information.updateId }}</span>
                        </el-form-item>
                        <el-form-item label="修改时间">
                            <span>{{ information.updateDatetime }}</span>
                        </el-form-item>
                </el-form>
            </div>
        </el-card>
    </div>
</template>

<script>
import {InformationService} from './InformationService';

export default {
    components: {
    },
    data() {
        return {
            information:{},
        }
    },
    methods: {
        findInformationForView(informationId)//查找资讯
        {
            InformationService.findInformationForView(informationId).then((resp) => {
                this.information = resp.data;
        }).catch((error) => {
            this.$message({
            type: 'error',
            message: '查询资讯出错'
        })
        })
        },
    },
    created() {
        const informationId = this.$route.params.informationId;
        this.findInformationForView(informationId);
    },
}

</script>
<style scoped lang="scss">

</style>
